package com.dddd.blog.api.post.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("bms_post_statistics")
@ApiModel(value = "PostStatistics对象", description = "")
@Data
public class PostStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("文章id")
    private Long postId;

    @ApiModelProperty("点击数")
    private Integer clickCount;

    @ApiModelProperty("收藏数")
    private Integer collectCount;

    @ApiModelProperty("评论数")
    private Integer commentCount;

    @ApiModelProperty("排序字段")
    private Integer sort;

    @ApiModelProperty("推荐级别(0~3)")
    private Integer level;


    @Override
    public String toString() {
        return "PostStatistics{" +
            "id=" + id +
            ", postId=" + postId +
            ", clickCount=" + clickCount +
            ", collectCount=" + collectCount +
            ", commentCount=" + commentCount +
            ", sort=" + sort +
            ", level=" + level +
        "}";
    }
}
